package com.dz.risk.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dz.risk.common.ResponseVO;
import com.dz.risk.common.exception.RRException;
import com.dz.risk.pojo.QueryParams;
import com.dz.risk.pojo.domain.RiskFactorValueEntity;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.usermodel.Workbook;


/**
 * 风险因子值
 *
 * @author baohan
 * @email
 * @date 2021-06-18 13:26:43
 */
public interface RiskFactorValueService extends IService<RiskFactorValueEntity> {

    /**
     * 风险因子数据值查询
     */
    PageInfo<RiskFactorValueEntity> queryFactorAndValue(QueryParams queryParams) throws RRException;

    /**
     * 导入风险因子值
     *
     * @param wb
     * @param excelType 1代表导入模板  2代表导入数据
     * @return
     * @throws RRException
     */
    ResponseVO importRiskFactorValue(Workbook wb, Integer excelType, String date) throws RRException;

    /**
     * 更新阈值
     * @param initDate
     */
    void updateThreadFlag(String initDate);
}

